<template>
	<view class="guanyupingtai">
		<view class="title">
			<u-icon name="arrow-left" size="24" @click="back"></u-icon>
			<text style="margin-left: 24rpx;">关于平台</text>
		</view>

		<view class="guanyupingtaibox">
			<rich-text type="text" :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	import {
		config
	} from "@/api/api.js"
	var graceRichText = require("../../static/richText.js");
	export default {
		data() {
			return {
				content: "",
			}
		},
		onLoad() {
			this.configs()
		},
		methods: {
			async configs() {
				let res = await config()
				if (res.code == 1) {
					console.log("关于平台", res)
					this.content = graceRichText.format(res.data.about_us)
				}
			},
			back() {
				uni.navigateBack({
					delta: 1
				});

			}
		}
	}
</script>

<style scoped lang="scss">
	.guanyupingtai {
		min-height: 100%;

		.title {
			width: 100%;
			height: 176rpx;
			padding-top: 110rpx;
			box-sizing: border-box;
			// background-color: red;
			display: flex;
			align-items: center;
			font-size: 32rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #333333;
			line-height: 38rpx;
			padding-left: 34rpx;
			box-sizing: border-box;

		}

		.guanyupingtaibox {
			margin-top: 42rpx;
			padding: 30rpx;

			.text {
				font-size: 30rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				line-height: 35rpx;
			}

			.gyptimg {
				width: 690rpx;
				height: 360rpx;
				border-radius: 30rpx;
				margin-top: 20rpx;
			}
		}
	}
</style>